@import 'ant-design-vue/dist/antd.less';
.ant-menu {
  font-size: var(--font-size-base);
  background: transparent;
  --menu-radius: 0.08rem;
  .useTheme({
    color: text-color;
  });
  .ant-menu-submenu-arrow {
    .useTheme({
      color: text-color;
    });
  }
  .ant-menu-submenu-arrow::before, .ant-menu-submenu-arrow::after {
    width: 0.06rem;
    height: 0.015rem;
    border-radius: 0.02rem;
  }
  &.ant-menu-sub {
    &.ant-menu-inline {
      background-color: transparent;
    }
  }
  &.ant-menu-light {
    .ant-menu-item-active {
      .useTheme({
        color: primary-color;
      });
    }
    .ant-menu-item {
      &:hover {
        .menu-icon {
          transform: scale(1.2);
        }
        .useTheme({
          background-color: primary-color;
        } , 0.2)
      }
    }
    .ant-menu-submenu-active {
      .useTheme({
        color: primary-color;
      });
    }
    .ant-menu-submenu-title {
      border-radius: var(--menu-radius);
      .ant-menu-item-icon + span {
        margin-left: 0.1rem;
      }
      &:hover {
        .menu-icon {
          transform: scale(1.2);
        }
        .useTheme({
          color: primary-color;
        });
        .useTheme({
          background-color: primary-color;
        } , 0.2);
        .ant-menu-submenu-arrow {
          &::before {
            .useTheme({
              background: primary-color;
            });
          }
          &::after {
            .useTheme({
              background: primary-color;
            });
          }
        }
      }
    }
  }
  &.ant-menu-inline {
    border-right-color: transparent;
    .ant-menu-item:not(:last-child) {
      margin-bottom: 0.08rem;
    }
    .ant-menu-submenu-arrow::before {
      transform: rotate(-45deg) translateX(0.025rem);
    }
    .ant-menu-submenu-arrow::after {
      transform: rotate(45deg) translateX(-0.025rem);
    }
    .ant-menu-item {
      padding-right: 0.1rem;
      margin: 0.04rem 0.16rem;
      width: auto;
      border-radius: var(--menu-radius);
      &::after {
        content: none;
      }
      .ant-menu-item-icon + span {
        margin-left: 0.1rem;
      }
      &.ant-menu-item-selected {
        .useTheme({
          color: primary-color;
        });
        .useTheme({
          background-color: primary-color;
        } , 0.3);
      }
    }
    & > .ant-menu-item {
      height: 0.4rem;
      line-height: 0.4rem;
    }
    .ant-menu-submenu {
      .ant-menu-submenu-title {
        height: 0.4rem;
        line-height: 0.4rem;
        width: auto;
        margin: 0.04rem 0.16rem;
        padding-right: 0.1rem;
      }
      &.ant-menu-submenu-selected {
        .useTheme({
          color: primary-color;
        });
        & > .ant-menu-submenu-title > .ant-menu-submenu-arrow {
          .useTheme({
            color: primary-color;
          });
        }
      }
      &:hover > .ant-menu-submenu-title > .ant-menu-submenu-arrow {
        .useTheme({
          color: primary-color;
        });
      }
    }
  }
  &.ant-menu-vertical {
    border-right: none;
    .ant-menu-submenu-selected {
      .useTheme({
        color: primary-color;
      });
      & > .ant-menu-submenu-title {
        .useTheme({
          background-color: primary-color;
        } , 0.3);
        & > .ant-menu-submenu-arrow {
          .useTheme({
            color: primary-color;
          });
        }
      }
    }
  }
  &.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title {
    padding: 0;
    margin: 0.04rem calc(50% - 40px / 2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    border-radius: var(--menu-radius);
  }
  &.ant-menu-inline-collapsed > .ant-menu-item {
    padding: 0;
    margin: 0.04rem calc(50% - 40px / 2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    border-radius: var(--menu-radius);
  }
  &:not(.ant-menu-horizontal) .ant-menu-item-selected {
    .useTheme({
      background-color: primary-color;
    } , 0.3)
  }
  &.ant-menu.ant-menu-inline-collapsed > .ant-menu-item .ant-menu-item-icon + span {
    width: 0;
    margin-left: 0;
  }
  &.ant-menu.ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon + span {
    width: 0;
    margin-left: 0;
  }
  &.ant-menu-horizontal {
    border-bottom: none;
    line-height: 36px;
    & > .ant-menu-item-selected {
      .useTheme({
        background-color: primary-color;
      } , 0.3);
    }
    & > .ant-menu-submenu-selected {
      .useTheme({
        background-color: primary-color;
      } , 0.3);
    }
    & > .ant-menu-item {
      top: 0;
    }
    & > .ant-menu-submenu {
      top: 0;
    }
    & > .ant-menu-item {
      padding: 0;
      margin: 0 0.06rem;
      border-radius: var(--menu-radius);
    }
    & > .ant-menu-submenu {
      padding: 0;
      margin: 0 0.06rem;
      border-radius: var(--menu-radius);
      &:hover {
        .useTheme({
          color: primary-color;
        });
        &::after {
          content: none;
        }
      }
    }
    & > .ant-menu-item:hover::after {
      content: none;
    }
    & > .ant-menu-item {
      border-radius: var(--menu-radius);
      padding: 0 0.16rem;
      display: flex;
      align-items: center;
      &::after {
        content: none;
      }
    }
    & > .ant-menu-submenu::after {
      content: none;
    }
    .ant-menu-submenu-title {
      padding: 0 0.16rem;
      display: flex;
      align-items: center;
    }
  }
}
.ant-menu-submenu-popup {
  &.ant-menu-submenu > .ant-menu {
    border-radius: 0.08rem;
    border: 0.01rem solid;
    .useTheme({
      background-color: page-bg-color;
      border-color: border-color;
    })
  }
  .ant-menu {
    .ant-menu-item-selected {
      .useTheme({
        color: primary-color;
      });
    }
    &.ant-menu-vertical > .ant-menu-submenu > .ant-menu-submenu-title {
      height: 0.4rem;
      line-height: 0.4rem;
    }
    &.ant-menu-vertical .ant-menu-submenu-title {
      margin: 0.08rem 0.16rem;
      padding: 0 0.16rem;
    }
    &.ant-menu-vertical {
      .ant-menu-item:not(:last-child) {
        margin-bottom: 0.08rem;
      }
      .ant-menu-item {
        height: 0.4rem;
        line-height: 0.4rem;
        margin: 0 0.16rem;
        margin-top: 0.08rem;
        padding: 0 0.16rem;
        margin-bottom: 0.08rem;
        border-radius: var(--menu-radius);
        display: flex;
        align-items: center;
        .ant-menu-item-icon + span {
          margin-left: 0.1rem;
        }
        .menu-icon {
          width: 0.16rem;
          height: 0.16rem;
          object-fit: cover;
          transition: all 0.3s;
        }
      }
    }
  }
}
.ant-drawer {
  .ant-drawer-body {
    padding: 0.16rem;
    font-size: var(--font-size-base);
  }
  .ant-drawer-content {
    .useTheme({
      background-color: page-bg-color;
    });
  }
  .ant-drawer-header {
    padding: 0.16rem;
    border-bottom: 0.01rem solid;
    .useTheme({
      border-bottom-color: border-color;
      background-color: page-bg-color;
    });
    .ant-drawer-title {
      font-size: var(--font-size-large);
      line-height: 0.22rem;
      .useTheme({
        color: text-color;
      });
    }
  }
}
.ant-tabs {
  font-size: var(--font-size-base);
  .useTheme({
    color: text-color;
  });
  &.ant-tabs-top > .ant-tabs-nav {
    margin-bottom: 0.16rem;
    &::before {
      border-bottom: 0.01rem solid;
      .useTheme({
        border-bottom-color: border-color;
      });
    }
    .ant-tabs-ink-bar {
      height: 0.02rem;
      .useTheme({
        background-color: primary-color;
      });
    }
  }
  .ant-tabs-tab {
    font-size: var(--font-size-base);
    padding: 0.12rem 0.1rem;
    &:hover {
      .useTheme({
        color: primary-color;
      });
    }
    & + .ant-tabs-tab {
      margin: 0 0 0 0.16rem;
    }
    &.ant-tabs-tab-active {
      .ant-tabs-tab-btn {
        text-shadow: none;
        .useTheme({
          color: primary-color;
        });
      }
    }
  }
  &.ant-tabs-card {
    .ant-tabs-nav {
      .ant-tabs-tab {
        border: 0.01rem solid;
        padding: 0.08rem 0.16rem;
        .useTheme({
          border-color: border-color;
          background-color: page-bg-color;
        });
        border-radius: var(--radius) var(--radius) 0 0;
        &.ant-tabs-tab-active {
          .useTheme({
            color: primary-color;
          });
          .useTheme({
            background-color: primary-color;
            border-color: primary-color;
          } , 0.4)
        }
      }
    }
  }
}
.ant-popover {
  .ant-popover-inner {
    border-radius: var(--radius);
    border: 0.01rem solid;
    .useTheme({
      border-color: border-color;
      background-color: page-bg-color;
    });
  }
  .ant-popover-arrow {
    .ant-popover-arrow-content {
      .useTheme({
        background-color: page-bg-color;
      } , 0.9);
    }
  }
}
.ant-switch {
  font-size: var(--font-size-base);
  min-width: 0.44rem;
  height: 0.22rem;
  line-height: 0.22rem;
  .ant-switch-inner {
    font-size: var(--font-size-small);
  }
  .useTheme({
    color: text-color;
  });
  &.ant-switch-checked {
    .useTheme({
      background-color: primary-color;
    });
    .ant-switch-handle {
      left: calc(100% - 0.18rem - 0.02rem);
    }
  }
  .ant-switch-handle {
    width: 0.18rem;
    height: 0.18rem;
    top: 0.02rem;
    &::before {
      .useTheme({
        background-color: page-bg-color;
      });
      border-radius: 0.09rem;
    }
  }
}
.ant-input-number {
  font-size: var(--font-size-base);
  background-color: transparent;
  width: 100%;
  border: 0.01rem solid;
  border-radius: var(--radius);
  .useTheme({
    border-color: border-color;
    color: text-color;
  });
  &:hover {
    border-right-width: 0.01rem !important;
    .useTheme({
      border-color: primary-color;
    })
  }
  &.ant-input-number-focused {
    box-shadow: none;
  }
  .ant-input-number-handler-wrap {
    width: 0.22rem;
    background-color: transparent;
    .ant-input-number-handler {
      border-left: 0.01rem solid;
      .useTheme({
        color: text-color-secondary;
        border-color: border-color;
      });
      &:hover {
        .ant-input-number-handler-up-inner {
          .useTheme({
            color: primary-color;
          });
        }
        .ant-input-number-handler-down-inner {
          .useTheme({
            color: primary-color;
          });
        }
      }
      .ant-input-number-handler-up-inner {
        font-size: 0.07rem;
        margin-top: -0.05rem;
      }
      .ant-input-number-handler-up-inner, .ant-input-number-handler-down-inner {
        width: 0.12rem;
        height: 0.12rem;
        right: 0.04rem;
        line-height: 0.12rem;
      }
    }
    .ant-input-number-handler-down-inner {
      font-size: 0.07rem;
    }
  }
}
.ant-input-number-input {
  height: 0.3rem;
  padding: 0 0.11rem;
  border-radius: var(--radius);
}
.ant-radio-button-wrapper{
  height: 0.32rem;
  padding: 0 0.15rem;
  line-height: 0.3rem;
  border: 0.01rem solid;
  font-size: var(--font-size-base);
  box-shadow: none !important;
  background-color: transparent;
  &.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
    .useTheme({
      background-color: primary-color;
      color: white-color;
    })
  }
  &:not(:first-child)::before {
    padding: 0.01rem 0;
    width: 0.01rem;
    top: -0.01rem;
    left: -0.01rem;
    height: calc(100% - 0.01rem);
    .useTheme({
      background-color: border-color;
    });
  }
  &:hover {
    .useTheme({
      color: primary-color;
    })
  }
  .useTheme({
    border-color: border-color;
    color: text-color;
  });
  &:first-child {
    border-left: 0.01rem solid;
    .useTheme({
      border-left-color: border-color;
    });
    border-radius: var(--radius) 0 0 var(--radius);
  }
  &:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
  }
}
.ant-radio-group {
  font-size: var(--font-size-base);
  .useTheme({
    color: text-color;
  });
  &.ant-radio-group-solid {
    .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
      .useTheme({
        background-color: primary-color;
        border-color: primary-color;
      });
    }
  }
}
.ant-radio-button-wrapper-checked:not([class*=' ant-radio-button-wrapper-disabled']).ant-radio-button-wrapper:first-child {
  .useTheme({
    border-right-color: primary-color;
  });
}
.ant-select {
  font-size: var(--font-size-base);
  .useTheme({
    color: text-color;
  });
  &.ant-select-focused {
    &:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {
      .useTheme({
        border-color: primary-color;
      });
      border-right-width: 0.01rem !important;
      box-shadow: none;
    }
  }
  &:not(.ant-select-customize-input) .ant-select-selector {
    border-radius: var(--radius);
    background-color: transparent;
    border: 0.01rem solid;
    .useTheme({
      border-color: border-color;
    });
  }
  &.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {
    height: 0.32rem;
    padding: 0 0.11rem;
    .ant-select-selection-search-input {
      height: 0.3rem;
    }
  }
  &.ant-select-single.ant-select-show-arrow .ant-select-selection-search {
    right: 0.25rem;
  }
  &.ant-select-single .ant-select-selector .ant-select-selection-search {
    right: 0.11rem;
    left: 0.11rem;
  }
  &.ant-select-single.ant-select-show-arrow .ant-select-selection-item {
    padding-right: 0.18rem;
  }
  &.ant-select-single .ant-select-selector .ant-select-selection-item {
    line-height: 0.3rem;
  }
  &.ant-select-single .ant-select-selector .ant-select-selection-placeholder {
    line-height: 0.3rem;
  }
  .ant-select-arrow {
    right: 0.11rem;
    width: 0.12rem;
    height: 0.12rem;
    margin-top: -0.06rem;
    font-size: var(--font-size-small);
    .useTheme({
      color: text-color-helpful;
    });
  }
}
.ant-select-dropdown {
  padding: 0.04rem 0;
  font-size: var(--font-size-base);
  border-radius: var(--radius);
  .useTheme({
    background-color: page-bg-color;
    color: text-color;
  });
}
.ant-select-item {
  min-height: 0.32rem;
  padding: 0.05rem 0.12rem;
  .useTheme({
    color: text-color;
  });
  font-size: var(--font-size-base);
  line-height: 0.22rem;
}
.ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
  .useTheme({
    background-color: primary-color;
  } , 0.4);
  .useTheme({
    color: primary-color;
  });
  font-weight: normal;
}
.ant-select-item-option-active:not(.ant-select-item-option-disabled) {
  .useTheme({
    background-color: primary-color;
  } , 0.3);
  .useTheme({
    color: primary-color;
  });
}
.ant-input {
  padding: 0.04rem 0.11rem;
  font-size: var(--font-size-base);
  background-color: transparent;
  border-radius: var(--radius);
  border: 0.01rem solid;
  &:hover {
    .useTheme({
      border-color: primary-color;
    });
  }
  &:focus {
    .useTheme({
      border-color: primary-color;
    });
    box-shadow: none;
  }
  .useTheme({
    color: text-color;
    border-color: border-color;
  });
}
.ant-select-item-empty {
  min-height: 0.32rem;
  padding: 0.05rem 0.12rem;
  font-size: var(--font-size-base);
  line-height: 0.22rem;
  .useTheme({
    color: text-color-desc;
  });
}
.ant-empty {
  .ant-empty-small {
    margin: 0.08rem 0;
    .useTheme({
      color: text-color-desc;
    });
  }
  .ant-empty-image {
    height: 0.35rem;
  }
  .ant-empty-description {
    font-size: var(--font-size-base);
  }
}
.ant-btn {
  font-size: var(--font-size-base);
  padding: 0.04rem 0.14rem;
  box-shadow: none;
  border: none;
  height: 0.32rem;
  line-height: 1;
  border: 0.01rem solid;
  border-radius: var(--radius);
  .useHover({
    background-color: text-color-secondary;
  });
  .useTheme({
    color: white-color;
    background-color: text-color-desc;
    border-color: text-color-desc;
  });
  &.ant-btn-primary {
    .useTheme({
      background-color: base-color;
      border-color: base-color;
      color: white-color;
    });
    .useHover({
      background-color: base-color;
    } , 0.8);
    &.ant-btn-dangerous {
      .useTheme({
        background-color: error-color;
        border-color: error-color;
        color: white-color;
      });
      .useHover({
        background-color: error-color;
      } , 0.8)
    };
  }
  &.ant-btn[disabled]{
    .useTheme({
      background-color: disabled-color;
      border-color: disabled-color;
      color: text-color-secondary;
    });
    .useHover({
      background-color: disabled-color;
    })
  }
}
.ant-form {
  .ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input, .ant-form-item-has-error :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper, .ant-form-item-has-error :not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper, .ant-form-item-has-error :not(.ant-input-disabled):not(.ant-input-borderless).ant-input:hover, .ant-form-item-has-error :not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover, .ant-form-item-has-error :not(.ant-input-number-affix-wrapper-disabled):not(.ant-input-number-affix-wrapper-borderless).ant-input-number-affix-wrapper:hover {
    .useTheme({
      border-color: error-color;
    })
  }
  .ant-form-item {
    margin-bottom: 0.24rem;
    label {
      font-size: var(--font-size-base);
      height: 0.32rem;
      .useTheme({
        color: text-color;
      })
    }
    .ant-form-item-control {
      .ant-form-item-control-input {
        min-height: auto;
        .ant-switch {
          margin-top: 0.04rem;
        }
        .ant-form-item-control-input-content {
          .ant-input-textarea-show-count::after {
            font-size: var(--font-size-base);
            .useTheme({
              color: text-color-desc;
            });
          }
          .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {
            .useTheme({
              border-color: primary-color;
            });
          }
        }
      }
    }
    input[type='radio'], input[type='checkbox'] {
      width: 0.14rem;
      height: 0.14rem;
    }
  }
  .ant-form-item-explain {
    height: 0;
    min-height: 0;
    .ant-form-item-explain-error {
      font-size: var(--font-size-base);
      .useTheme({
        color: error-color;
      })
    }
  }
}
.ant-form-item-label > label {
  font-size: var(--font-size-base);
}
.ant-pagination {
  font-size: var(--font-size-base);
  .useTheme({
    color: text-color;
  });
  .ant-pagination-item-link {
    .ant-pagination-item-link-icon {
      .useTheme({
        color: primary-color;
      });
    }
  }
  .ant-pagination-prev , .ant-pagination-item , .ant-pagination-next {
    min-width: 0.32rem;
    height: 0.32rem;
    min-width: 0.32rem;
    line-height: 0.32rem;
    border: none;
  }
  .ant-pagination-total-text {
    .useTheme({
      color: primary-text;
    });
  }
  .ant-pagination-item {
    margin-right: 0.08rem;
    .useTheme({
      background: primary-color;
    } , 0.08);
    .useHover({
      background: primary-color;
    });
    &:hover {
      a {
        .useTheme({
          color: white-color;
        });
      }
    }
    a {
      padding: 0 0.06rem;
      .useTheme({
        color: text-color;
      })
    }
    &.ant-pagination-item-active {
      a {
        .useTheme({
          background: primary-color;
          color: white-color;
        });
      }
    }
  }
  .ant-pagination-prev {
    margin-right: 0.08rem;
    .ant-pagination-item-link {
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      font-size: var(--font-size-small);
      .useTheme({
        color: text-color-desc;
      });
    }
  }
  .ant-pagination-next {
    .ant-pagination-item-link {
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      font-size: var(--font-size-small);
      .useTheme({
        color: text-color-desc;
      });
    }
  }
  &.ant-pagination-simple {
    .ant-pagination-simple-pager {
      input {
        border: none;
        .useTheme({
          color: text-color-desc;
        });
        .useTheme({
          color: white-color;
        } , 0.08);
      }
    }
  }
  .ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-ellipsis, .ant-pagination-jump-next .ant-pagination-item-container .ant-pagination-item-ellipsis {
    .useTheme({
      color: text-color-desc;
    });
  }
  .ant-pagination-options {
    margin-left: 0.16rem;
    .ant-select {
      font-size: var(--font-size-base);
      &.ant-select-single:not(.ant-select-customize-input) {
        .ant-select-selector {
          height: 0.32rem;
          padding: 0 0.11rem;
        }
      }
      &.ant-select-single:not(.ant-select-customize-input) {
        .ant-select-selector {
          .ant-select-selection-search-input {
            height: 0.3rem;
          }
        }
      }
      &.ant-select-single .ant-select-selector .ant-select-selection-item, .ant-select-single .ant-select-selector .ant-select-selection-placeholder {
        line-height: 0.3rem;
      }
    }
  }
}
.ant-skeleton {
  .ant-skeleton-paragraph > li {
    height: 0.16rem;
  }
  .ant-skeleton-paragraph > li + li {
    margin-top: 0.1rem;
  }
  .ant-skeleton-button {
    height: 0.24rem;
  }
}
.ant-checkbox-wrapper {
  height: 0.32rem;
  align-items: center;
  line-height: 1;
  .useTheme({
    color: text-color;
  });
  &:hover {
    .ant-checkbox-inner {
      .useTheme({
        border-color: primary-color;
      })
    }
  }
  .ant-checkbox-indeterminate .ant-checkbox-inner::after {
    .useTheme({
      background-color: primary-color;
    })
  }
}
.ant-checkbox {
  top: 0;
  font-size: var(--font-size-base);
  &:hover .ant-checkbox-inner {
    .useTheme({
      border-color: primary-color;
    })
  }
  .ant-checkbox-inner {
    width: 0.14rem;
    height: 0.14rem;
    &::after {
      width: 0.0571rem;
      height: 0.09142rem;
      border-width: 0.02rem;
    }
  }
  &.ant-checkbox-checked {
    &::after {
      border-radius: 0.02rem;
      .useTheme({
        border-color: primary-color;
      });
    }
    .ant-checkbox-inner {
      .useTheme({
        background: primary-color;
      });
      .useTheme({
        border-color: white-color;
      } , 0.3)
    }
  }
}
.ant-tree {
  font-size: var(--font-size-base);
  background-color: transparent;
  .useTheme({
    color: text-color;
  });
  .ant-tree-node-content-wrapper {
    .useHover({
      background-color: primary-color;
    } , 0.6);
    &.ant-tree-node-selected {
      .useTheme({
        background-color: primary-color;
      } , 0.4)
    }
  }
  .ant-tree-checkbox {
    margin: 0.04rem 0.08rem 0 0;
    .ant-tree-checkbox-inner {
      width: 0.16rem;
      height: 0.16rem;
      border: 0.01rem solid;
      .useTheme({
        border-color: border-color;
      })
    }
  }
  .ant-tree-node-content-wrapper {
    min-height: 0.24rem;
    line-height: 0.24rem;
  }
  .ant-tree-switcher {
    width: 0.24rem;
    line-height: 0.24rem;
  }
  .ant-tree-treenode {
    padding: 0 0 0.04rem 0;
  }
  .ant-tree-checkbox-checked {
    &::after {
      border: 0.01rem solid;
      .useTheme({
        border-color: primary-color;
      });
    }
    .ant-tree-checkbox-inner {
      .useTheme({
        background-color: primary-color;
      })
    }
  }
  .ant-tree-checkbox-indeterminate {
    .ant-tree-checkbox-inner::after {
      .useTheme({
        background-color: primary-color;
      })
    }
  }
}
.ant-table-wrapper {
  width: 100%;
  height: 100%;
  .ant-spin-nested-loading {
    width: 100%;
    height: 100%;
    .ant-spin-spinning {
      max-height: inherit;
    }
    .ant-spin-container {
      width: 100%;
      height: 100%;
      .ant-table {
        width: 100%;
        height: 100%;
        background-color: transparent;
        .ant-table-container {
          height: 100%;
        }
        .ant-table-thead {
          tr {
            th {
              font-size: var(--font-size-medium);
              padding: 0.16rem;
              border-bottom: 0.01rem solid;
              .useTheme({
                border-bottom-color: border-color;
              });
              // border-bottom: none;
              .useTheme({
                background: primary-color;
              } , 0.1);
              .useTheme({
                color: text-color;
              });
              &.ant-table-cell-scrollbar {
                box-shadow: none;
                display: none;
              }
            }
          }
        }
        .ant-table-tbody {
          tr {
            &:hover {
              .useTheme({
                background-color: primary-color;
              } , 0.08);
            }
            .ant-table-cell {
              padding: 0.1rem;
              // border-bottom: none;
              background: transparent;
              .useTheme({
                color: text-color;
              });
              font-size: var(--font-size-base);
            }
            td {
              border-bottom: 0.01rem solid;
              .useTheme({
                border-color: border-color;
              })
            }
          }
        }
        &.ant-table-empty {
          .ant-table-container {
            display: flex;
            flex-flow: column;
            .ant-table-content {
              flex: 1;
              table {
                height: 100%;
              }
            }
            .ant-table-body {
              flex: 1;
              & > table {
                height: 100%;
              }
              tr {
                &:hover {
                  background-color: transparent; 
                }
              }
            }
          }
        }
        .row-selected {
          .useTheme({
            color: primary-color;
          });
          .useTheme({
            background-color: primary-color;
          } , 0.5);
          .useTheme({
            color: primary-color;
          });
          .useTheme({
            background-color: primary-color;
          } , 0.5);
        }
        .ant-table-expanded-row {
         & > .ant-table-cell {
          background-color: transparent !important;
          .ant-table-wrapper {
            .ant-table-tbody {
              .ant-table-row {
                &:nth-child(even) {
                  .ant-table-cell {
                    .useTheme({
                      background-color: primary-color;
                    } , 0.2);
                  }
                }
                &:nth-child(odd) {
                  .ant-table-cell {
                    .useTheme({
                      background-color: primary-color;
                    } , 0.1);
                  }
                }
              }
            }
            .ant-table-thead {
              .ant-table-cell {
                .useTheme({
                  color: text-color;
                });
              }
            }
          }
         }
        }
      }
      .ant-table-bordered {
        .ant-table-container {
          border: none;
          .ant-table-header {
            border-left: 0.01rem solid;
            .useTheme({
              border-color: text-color-desc;
            } , 0.2);
            .ant-table-thead {
              tr th {
                border-bottom: 0.01rem solid;
                border-top: 0.01rem solid;
                .useTheme({
                  border-color: text-color-desc;
                } , 0.2);
                &:first-child {
                  border-left: 0.01rem solid;
                  .useTheme({
                    border-color: text-color-desc;
                  } , 0.2);
                }
                &.ant-table-cell-fix-right-first {
                  &::after {
                    .useTheme({
                      border-color: text-color-desc;
                    } , 0.2);
                  }
                }
              }
            }
            table {
              border-top: none;
            }
          }
          .ant-table-body {
            border-left: 0.01rem solid;
            // border-bottom: 0.01rem solid;
            .useTheme({
              border-color: text-color-desc;
            } , 0.2);
            &::-webkit-scrollbar {
              height: 0.08rem;
            }
            .ant-table-cell {
              border-width: 0.01rem;
              .useTheme({
                border-color: text-color-desc;
              } , 0.2);
            }
            .ant-table-cell-fix-right-first {
              &::after {
                .useTheme({
                  border-color: text-color-desc;
                } , 0.2);
              }
            }
          }
        }
      }
    }
  }
}
.ant-input-group-wrapper {
  .ant-input-group {
    font-size: var(--font-size-base);
    .ant-input-group-addon {
      line-height: 1;
      .useHover();
      border: 0.01rem solid;
      border-radius: var(--radius);
      background-color: transparent;
      .ant-input-search-button {
        border-top-right-radius: var(--radius) !important;
        border-bottom-right-radius: var(--radius) !important;
        .useTheme({
          background-color: base-color;
        });
        .useHover({
          background-color: base-color;
        } , 0.8);
        .anticon-search {
          .useTheme({
            color: white-color;
          })
        }
      }
    }
  }
}
.ant-input-affix-wrapper {
  background-color: transparent;
  padding: 0;
  .ant-input {
    padding: 0 0.11rem !important;
    height: 0.32rem;
  }
  .anticon-plus-circle {
    .useTheme({
      color: text-color;
    });
  }
  .ant-input-suffix {
    margin-left: 0;
    padding: 0 0.1rem;
    .ant-input-show-count-suffix {
      font-size: var(--font-size-base);
      .useTheme({
        color: text-color-desc;
      })
    }
    .ant-input-password-icon {
      .useTheme({
        color: text-color;
      })
    }
  }
}
textarea.ant-input {
  min-height: 0.32rem;
  height: 1rem;
}
.ant-message-notice {
  .ant-message-notice-content {
    padding: 0.1rem 0.16rem;
    font-size: var(--font-size-base);
    .anticon {
      font-size: var(--font-size-medium);
    }
  }
}
.ant-radio-group {
  height: 0.32rem;
  display: flex;
  align-items: center;
  line-height: 1;
  font-size: var(--font-size-base);
  flex-wrap: wrap;
  .useTheme({
    color: text-color;
  });
}
.ant-radio-wrapper {
  line-height: 1;
  font-size: var(--font-size-base);
  align-items: center;
  .ant-radio {
    top: 0;
  }
}
.ant-radio-inner {
  width: 0.16rem;
  height: 0.16rem;
  &::after {
    width: 0.16rem;
    height: 0.16rem;
    margin-top: -0.08rem;
    margin-left: -0.08rem;
  }
}
.ant-radio-checked {
  .ant-radio-inner {
    .useTheme({
      border-color: primary-color;
    });
    &::after {
      .useTheme({
        background: primary-color;
      });
    }
  }
}
.ant-radio-button-wrapper {
  height: 0.32rem;
  line-height: 0.3rem;
  padding: 0 0.15rem;
  border: none;
  box-shadow: none;
  .useTheme({
    color: text-color;
    background-color: text-color-helpful;
  });
  &:not(:first-child)::before {
    top: 0;
    padding: 0;
    .useTheme({
      background-color: primary-color;
    } , 0.1);
  }
  &:hover {
    .useTheme({
      color: primary-color;
    })
  }
  &.ant-radio-button-wrapper-checked {
    box-shadow: none;
    .useTheme({
      background-color: primary-color;
      color: primary-color;
    });
  }
}
.ant-tag {
  font-size: var(--font-size-small);
  border: 0.01rem solid;
  padding: 0 0.07rem;
  margin-right: 0.08rem;
  border-radius: var(--radius);
  .useTheme({
    border-color: border-color;
  });
  &.ant-tag-error {
    .useTheme({
      border-color: error-color;
    });
    .ant-tag-close-icon {
      .useTheme({
        color: error-color;
      })
    }
  }
  .ant-tag-close-icon {
    margin-left: 0.07rem !important;
    font-size: var(--font-size-small);
  }
}
.ant-btn-icon-only > * {
  font-size: var(--font-size-medium);
}
.ant-input-password {
  font-size: var(--font-size-base);
  border-radius: var(--radius);
  border: 0.01rem solid;
  .useTheme({
    color: text-color;
    border-color: border-color;
  });
  &::before {
    content: none;
  }
  &.ant-input-affix-wrapper {
    .ant-input {
      padding: 0.04rem 0.11rem !important;
      height: auto;
    }
  }
}